﻿/*
 * aspark
 * Email:mwyso@126.com
 * http://quicksl.codeplex.com/
 */

using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace QuickSL
{
    public class AsyncItem
    {
        protected AsyncItem()
        {
            ID = Guid.NewGuid().ToString("N");
        }

        public string ID { get; private set; }

        public override int GetHashCode()
        {
            return ID.GetHashCode();
        }

        public override bool Equals(object obj)
        {
            if (obj is AsyncItem)
            {
                return this.ID == (obj as AsyncItem).ID;
            }

            return false;
        }
    }
}
